package cn.bugstack.springframework.test.bean;
// 在 UserService 中注入UserDao，这样就能体现出 Bean 属性的依赖了

public class UserService {
    private String uId;
    private UserDao userDao;

    public String getuId() {
        return uId;
    }

    public void setuId(String uId) {
        this.uId = uId;
    }

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public String queryUserInfo(){
        return userDao.queryUserName(uId);
    }

}
